package com.xiongjie.service;

import com.xiongjie.impl.IPerson;
import io.vertx.core.Vertx;
import io.vertx.ext.unit.junit.VertxUnitRunner;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;

@RunWith(VertxUnitRunner.class)
public class PersonVertxService {

    private IPerson iPerson;

    @Before
    public void init(){
        Vertx vertx=Vertx.vertx();
        iPerson = IPerson.createProxy(vertx);
    }

    @Test
    public void test(){
        iPerson.getPersonByName("xiongjie",response ->
            System.out.println(response.result())
        );
    }
}
